package exebuilder.core;

import javafx.stage.Window;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.HashMap;
import java.util.Map;

public class Windows {

  private static final Logger logger = LogManager.getLogger();

  public static final Map<String, Window> windows = new HashMap<>();

  public static void add(String key, Window window) {
    windows.put(key, window);
    logger.debug("window {}->{} added", key, window);
  }

  public static Window get(String key) {
    return windows.get(key);
  }

}
